home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 March
/
PCWorld_2002-03_cd.bin
/
Software
/
TemaCD
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ WinNT Max User.xpl
< prev
next >
Wrap
Text File
|
2001-04-26
|
1KB
|
56 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="2"
"COUNT"="1"
"UIPATH"="Network\Server"
"NAME"="Max User Connections"
"VERSION"="1.15"
"OSVERSION"="010101"
"LANGUAGE"="VBScript"
"TEXT 1"="Max. Connects"
"DESCRIPTION 1"="Use this plug-in to change the maximum count of users that are allowed to connect to this machine at a time."
"DESCRIPTION 2"="This setting is useful if the server is slow."
"DESCRIPTION 3"="To restore the original settings, clear the field."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
sP="HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Users"
Sub Plugin_Initialize
i=RegReadValue(sP)
SetUIElement 1,i
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
i=GetUIElement(1)
if i="" then
'Delete Value
i=RegReadValue(sP)
if not isEmpty(i) then
Call RegDeleteValue(sP)
end if
else
'Set Value
if IsNumeric(i) then
Call RegWriteValue(sP,i,2)
Call Restart
else
Call MsgError("Please enter a valid numeric value.")
end if
end if
End Sub
Sub Plugin_Terminate
End Sub